package com.java.util.pojo;

public class TestEqualsSymmetric {

    public static void main(String[] args) {

        Chilad chilad1 = new Chilad();
        chilad1.setName("chilad");
        chilad1.setCode("A");


        Chilad chilad2 = new Chilad();
        chilad2.setName("chilad");
        chilad2.setCode("B");


        Parent parent = new Parent();
        parent.setCode("c");

        System.out.println(chilad1.equals(chilad2)); // 结果输出true，但是其实2个子类的code是不同的，应该为false才对
    }
}
